package com.zqu.service.impl;

import com.zqu.mapper.PManagerment.ByStagesTypeMapper;
import com.zqu.pojo.ByStagesType;
import com.zqu.service.ByStagesTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ByStagesTypeServiceImpl implements ByStagesTypeService {

    @Autowired(required = false)
    private ByStagesTypeMapper byStagesTypeMapper;

    @Override
    public ByStagesType selectByStagesTypeById(long id) {
        return byStagesTypeMapper.selectTById(id);
    }

    @Override
    public List<ByStagesType> selectList(ByStagesType byStagesType) {
        return byStagesTypeMapper.selectList(byStagesType);
    }

    @Override
    public boolean insertByStagesType(ByStagesType byStagesType) {
        return byStagesTypeMapper.insertT(byStagesType)>0;
    }

    @Override
    public boolean updateByStagesType(ByStagesType byStagesType) {
        return byStagesTypeMapper.updateT(byStagesType)>0;
    }

    @Override
    public boolean deleteByStagesType(long id) {
        return byStagesTypeMapper.deleteT(id)>0;
    }

    @Override
    public boolean deleteByStagesTypeByIds(String[] ids) {
        return byStagesTypeMapper.deleteTByIds(ids)>0;
    }
}
